package com.hbsi.iodemo3;

import java.io.*;

/**
 * @author 程奕红
 * @version 1.0
 * 演示将一个文件复制到指定位置
 */
public class TestBufferedReaderAndWrite {
    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader=new BufferedReader(new FileReader("e:\\cc.txt"));
        BufferedWriter bufferedWriter=new BufferedWriter(new FileWriter("e:\\story.txt"));
        String str;
        while((str=bufferedReader.readLine())!=null){
            bufferedWriter.write(str);
            bufferedWriter.newLine();
        }
    }
}
